<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<section class="content">
    <div class="box">
        <div class="box-body">
            <form id="searchForm" class="form-inline">
                <div class="form-group">
                    <label for="cid"> 分类名称： </label>
                    <select id="cid" name="cid" class="form-control select2" data-placeholder="分类名称"
                            th:with="list=${@shopCategorysService.findSelect2()}">
                        <option value="">请选择</option>
                        <option th:each="category: ${list}" th:value="${category.id}"
                                th:text="${category.name}"></option>
                    </select>
                </div>
                <button class="btn  btn-default  btn-sm" type="button" onclick="restForm()">重置</button>
                <button class="btn  btn-success btn-sm" type="button" onclick="searchForm()">搜索</button>
            </form>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <table id="table"></table>
        </div>
    </div>
</section>

<!--引入js-->
<div th:include="include :: footer"></div>
<script th:src="@{/demo/resources/shop/commodity.js}"></script>
</body>
</html>